import instance from "../utils/request";

export function getuser(data){
    return instance({
        url: 'api/users',
        method: 'get',
        params:data,
        headers: {'Authorization': String(localStorage.getItem("jwt"))},
    })
}

//  定义添加用户
export function addApi(data) {
    return instance({
        url: "/api/users/add",
        method: "post",
        data,
        headers: { 'Authorization': String(localStorage.getItem("jwt")) },
    })
}